MediaCloud\Plugin\Tools\Storage\StorageTool D

Total Complexity 820
Dependencies 32
Dependents 1
Total lines 5,334
Lines of code 4,190
Logical lines of code 2,145
Comment lines 373
Methods 83
Properties 19

Methods 83

Method Rating Maintainability Complexity Lines of code
verifyPost()
D
18
56 256
processFile()
D
18
53 242
hookMediaList()
D
19
48 265
syncLocal()
D
21
45 222
updateAttachmentMetadata()
D
21
44 209
setup()
D
21
28 264
doImportFile()
C
27
24 154
__construct()
C
29 25 121
updateAttachmentS3Props()
C
34 26 92
processImport()
C
30 22 129
getFileList()
C
34 23 98
getAttachmentURLFromMeta()
C
36 24 73
regenerateFile()
B
32 20 115
importImageAttachmentFromStorage()
B
30 18 133
handleUpload()
B
35 21 82
importExistingImageAttachmentFromStorage()
B
32 17 110
getAttachmentURL()
B
44 17 42
doRenderStoreageInfoMetaImage()
A
35 13 88
deleteAttachment()
A
41 14 57
getUploadDir()
A
42 13 55
prepareAttachmentForJS()
A
45 14 36
doRenderStorageInfoMeta()
A
45 12 41
importOffloadMetadata()
A
39 10 71
forcedImageDownsize()
A
47 11 39
handleUpdateAttachmentMetadataFor53()
A
44 10 52
importAttachmentFromStorage()
A
40 9 60
getAttachedFile()
A
51 11 27
findPostId()
A
46 9 37
uploadOriginalImage()
A
43 8 51
importStatelessMetadata()
A
44 8 47
settingsChanged()
A
51 9 29
importFileFromStorage()
A
45 8 44
addAttachment()
A
43 7 52
importExistingAttachmentFromStorage()
A
46 7 39
getThemeOptionURL()
S
50 7 29
loadImageToEditPath()
S
52 7 26
getOffloadS3URL()
S
56 7 18
doCleanUploads()
S
50 6 32
hookMediaGrid()
S
42 2 81
handleRegenerateFile()
S
50 5 32
loadOffloadMetadata()
S
55 5 19
fixOffloadS3Meta()
S
49 4 31
handleUpdateAttachmentMetadata()
S
62 5 11
uploadUrlForFile()
S
52 4 25
doRenderStorageinfoMetaDocument()
S
46 3 38
deleteFile()
S
54 4 23
fileIsDisplayableImage()
S
54 4 23
migratePostFromOtherPlugin()
S
57 4 17
handleImageOptimizer()
S
51 3 31
editAttachment()
S
59 4 14
handleImagifyAfter()
S
62 4 13
processCrop()
S
59 4 13
hookAttachmentDetails()
S
49 1 47
handleGenerateAttachmentMetadata()
S
58 3 17
migrateFromOtherAjax()
S
58 3 16
prepareMigrateFromOtherPlugin()
S
53 2 23
doImportDynamicFile()
S
58 2 17
getStatelessURL()
S
69 3 6
providerHelp()
S
63 3 10
testPrivacy()
S
70 3 6
enabled()
S
69 3 7
imageDownsize()
S
65 3 9
getMediaInfo()
S
65 3 10
cloudIcon()
S
68 2 7
providerOptions()
S
68 2 7
verifyLocal()
S
65 2 8
activate()
S
70 2 6
lockIcon()
S
68 2 7
displayOptimizerAdminNotice()
S
62 1 14
hookStorageInfoMetabox()
S
63 1 12
hasSettings()
S
82 1 3
getLocalUrl()
S
69 1 7
renderStorageInfoMeta()
S
81 1 3
handleImagifyImageOptimizer()
S
81 1 3
client()
S
82 1 3
wizardLink()
S
80 1 3
cleanUploads()
S
68 1 9
hookDieHandler()
S
76 1 4
uploadMaster()
S
82 1 3
attachmentIdFromURL()
S
78 1 3
hasWizard()
S
82 1 3
handleSmushImageOptimizer()
S
81 1 3
hookupUI()
S
73 1 6